import  React from 'react'



import { withRouter } from "react-router";

  class   Playing  extends React.Component {


  


    gotoHome=()=>{

        console.log(this.props)
    
        console.log(this.props.history)

        this.props.history.push({
            pathname: '/home'
        
          });
        // this.props.history.push({
        //     pathname: '/home',
        //     search: '?the=query',
        //     params:{myname:'zs'},
        //     state: { some: 'state' }
        //   }); 
    }
    render() {


        return(

            <div>
                Playing 组件
                <button  onClick={this.gotoHome}>点击跳转到home组件</button>
            </div>

           
        )
    }
}


//   react  高阶组件
export default  withRouter(Playing)